﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using WalkingTec.Mvvm.Core;

namespace WTM.Model
{
    public enum DwTypeEnum
    {
        [Display(Name = "金融")]
        jinrong,
        [Display(Name = "医疗")]
        yiyuan,
        [Display(Name = "政府机关")]
        zhengfu,
        [Display(Name = "学校")]
        xuexiao,
        [Display(Name = "企业")]
        qiye,
        [Display(Name = "保安公司")]
        bags,
        [Display(Name = "其他")]
        qita
    }
    public enum DwQy
    {
        松桃县,
        沿河县,
        碧江区,
        其他
    }



    public class Dw : BasePoco
    {

        //[Display( Name = "学校编码")]
        //[Required( ErrorMessage = "{0}是必填项")]
        //[RegularExpression( "^[0-9]{3,3}$", ErrorMessage = "{0}必须是3位数字")]
        //[StringLength(3)]
        //public string SchoolCode { get; set; }

        //[Display( Name = "学校名称")]
        //[StringLength( 50, ErrorMessage = "{0}最多输入{1}个字符")]
        //[Required(ErrorMessage = "{0}是必填项")]
        //public string SchoolName { get; set; }

        //[Display( Name = "学校类型")]
        //[Required( ErrorMessage = "{0}是必填项")]
        //public SchoolTypeEnum? SchoolType { get; set; }
        [Display(Name = "单位区域")]
        public DwQy Dwqy { get; set; }

        [Display(Name = "单位名称")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string Dwmc { get; set; }

        [Display(Name = "单位编码/统一机构代码")]
        public string Dwbm { get; set; }

        [Display(Name = "单位类型")]
        public DwTypeEnum Dwlx { get; set; }

        [Display(Name = "单位地址")]
        public string Dwdz { get; set; }

        [Display(Name = "单位电话")]
        public string Dwdh { get; set; }

        [Display(Name = "单位负责人")]
        public string Dwfzr { get; set; }

        [Display(Name = "负责人电话")]
        public string Dwfzrdh { get; set; }

        [Display(Name = "经纬度")]
        public string Jwd { get; set; }

        [Display(Name = "照片")]
        public Guid? PhotoId { get; set; }
        public FileAttachment Photo { get; set; }//关联文件

        //[Display(Name = "3D模型")]
        //public Guid? Mx3DId { get; set; }
        //public FileAttachment Mx3D { get; set; }//关联文件

        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}